package config

import (
	"os"
	"strconv"
)

func GetConfig()  (string,string,float64,int){
	dir, _ := os.Getwd()
	superDir:=dir+"/config/config.ini"
	//superDir:=dir+"\\config\\config.ini"
	configMap := InitConfig(superDir)
	apiKey:=configMap["apiKey"]
	seretKey:=configMap["seretKey"]

	rate,_:=strconv.ParseFloat(configMap["rate"],64)
	lever,_:=strconv.Atoi(configMap["lever"])

	return apiKey,seretKey,rate,lever

}
